<ul>
    <?php $i = 0; ?>
    <?php foreach ($profile->getUser()->getAwards() as $award): ?>
        <li class="<?php echo fmod($i, 2) ? "odd" : "even" ?>">
            <div class="award-image">
                <img alt="<?php echo $award->getDescription() ?>, <?php echo $award->getInstitution() ?> <?php echo $award->getYear() ?>" src="/images/icons/14x14/achievements.png">
            </div>
            <div class="award-name">
                <?php echo $award->getDescription() ?>, <?php echo $award->getInstitution() ?> <?php echo $award->getYear() ?>           
            </div>
            <div class="inline-actions" style="display: none;">
                <a class="edit-qualification" href="/backend.php/profile_award/<?php echo $award->getId() ?>/edit">
                    <img alt="Edit" title="Edit" src="/images/icons/14x14/edit.png"></img>
                </a>
                <a class="delete-qualification" href="/backend.php/profile_award/<?php echo $award->getId() ?>" onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.method = 'post'; f.action = this.href;var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', 'sf_method'); m.setAttribute('value', 'delete'); f.appendChild(m);var m = document.createElement('input'); m.setAttribute('type', 'hidden'); m.setAttribute('name', '_csrf_token'); m.setAttribute('value', '9281a27d116ac125c0097832711b393a'); f.appendChild(m);f.submit(); };return false;">
                    <img alt="Delete" title="Delete" src="/images/icons/14x14/delete.png"></img>
                </a>
            </div>
        </li>
        <?php $i++ ?>
    <?php endforeach; ?>      
</ul>
<div class="clear"></div>
<script type="text/javascript">      
    $("#awards_list li").mouseover(function(){
        $(this).children(".inline-actions").show();
    }).mouseout(function(){
        $(this).children(".inline-actions").hide();
    });
    
    $(".edit-award").click(function(){
        myModal("Edit Award", $(this).attr("href"), 200, 510);
        return false;
    });
</script>